<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <style>
        .form-group img {
            cursor: pointer
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>渠道商列表</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>渠道商信息详情</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">渠道商信息详情</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frm">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">渠道商ID：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="channelApplyId" value="${channelApply.channelApplyId}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">负责人：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="principal" id="principal"
                                       value="${channelApply.principal}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">生日：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="birthday" id="birthday" value="<fmt:formatDate value="${memberInfo.birthday}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">性别：</label>
                            <div class="col-sm-4">
                                <select disabled class="form-control" id="sex" name="sex" readonly>
                                    <option value="0" ${memberInfo.sex=="0"?"selected":""}>未知</option>
                                    <option value="1" ${memberInfo.sex=="1"?"selected":""}>男</option>
                                    <option value="2" ${memberInfo.sex=="2"?"selected":""}>女</option>
                                </select>
                            </div>
                        </div>
<%--                        <div class="form-group row">--%>
<%--                            <label class="col-sm-3 col-form-label text-right">身份证号：</label>--%>
<%--                            <div class="col-sm-4">--%>
<%--                                <input type="text" class="form-control" name="iden" id="iden" value="${memberInfo.iden}">--%>
<%--                            </div>--%>
<%--                        </div>--%>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">等级：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="channelLevel" id="channelLevel" value="${channelLevel}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">名称：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="channelName" id="channelName" value="${memberInfo.nickname}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">手机号：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="mobile" id="mobile" value="${channelApply.mobile}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">推荐人ID：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="recommenderId" id="recommenderId" value="${memberInfo.recommenderId}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">微信：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="nickname" id="nickname" value="${memberInfo.mobile}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">通讯地址：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="address" id="address" value="${channelApply.address}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">最近登陆时间：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="lastLoginTime" id="lastLoginTime" value="<fmt:formatDate value="${memberInfo.lastLoginTime}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">注册时间：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="registerTime" id="registerTime" value="<fmt:formatDate value="${memberInfo.registerTime}" pattern="yyyy-MM-dd HH:mm:ss" />" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">状态：</label>
                            <div class="col-sm-4">
                                <select class="form-control" name="status" id="status" disabled>
                                    <option value="0" <c:if test="${channelApply.status eq '0'}">selected</c:if>>停用</option>
                                    <option value="1" <c:if test="${channelApply.status eq '1'}">selected</c:if>>启用</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">企业名称：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="enterpriseName" id="enterpriseName" value="${enterprise.enterpriseName}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">纳税人识别号：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="taxPayerCode" id="taxPayerCode" value="${enterprise.taxPayerCode}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">统一社会信用代码：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="license" id="license" value="${enterprise.license}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">营业执照：</label>
                            <div class="col-sm-8">
                                <div>
                                    <img id="companyImg1" src="${enterprise.companyImg1}" width="155px" height="120px">
                                </div>

                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开户行：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="enterpriseBank" id="enterpriseBank" value="${enterprise.enterpriseBank}" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">银行账号：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="enterpriseBankAccount" id="enterpriseBankAccount" value="${enterprise.enterpriseBankAccount}" readonly>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
